﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public class Program
    {
        static void Main(string[] args)
        {

            int[] Str = new int[10];
            Console.WriteLine(Str[1]);

            int[] arr = { 12, 54, 6, 78, 87, 524, 54, 6 };
            Console.WriteLine(arr[arr.Length - 1]);


            String[] str = {
                "科比.布莱恩特",
                "勒布朗.詹姆斯",
                "布兰登.英格拉姆"
            };
            for (int i = 0; i < str.Length; i++)
            {
                Console.WriteLine(str[i]);
            }
            var a = new int[4];

            Console.WriteLine("请输入4个整数:");

            for (int j = 0; j < a.Length; j++)
            {
                a[j] = int.Parse(Console.ReadLine());//将字符串转为整形
            }

            int Min = a[0];
            for (int q = 1; q < a.Length; q++)
            {
                if (a[q] < Min)
                {
                    Min = a[q];
                }

            }
            Console.WriteLine("这个数组的最小值为：" + Min);





            int[][] Timi = new int[3][];
            Timi[0] = new int[2];
            Timi[1] = new int[3];
            Timi[2] = new int[4];

            for (int i = 0; i < Timi.Length; i++)
            {
                Console.WriteLine("输入数组中第" + (i + 1) + "行的元素：");
                for (int j = 0; j < Timi[i].Length; j++)
                {
                    Timi[i][j] = int.Parse(Console.ReadLine());
                }
                Console.WriteLine();
            }
        }


            


        
    }

}